package com.zjff.mobiletwo.dao;

import com.zjff.mobiletwo.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TestDao {
    @Select("select * from zy_user where username=#{username}")
    UserEntity login(@Param("username")String username);//登录

    @Select("select * from zy_user where id=#{id}")
    UserEntity getuserById(@Param("id")Integer id);
}
